import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SEntityId } from "./SEntityId";
type int = number;
//class SPlayerScore
// did
export class SPlayerScore {
  public __write(arg1: SerializeStream): void {
    this.entityId.__write(arg1);
    arg1.writeString(this.name);
    arg1.writeByte(this.camp);
    arg1.writeByte(this.sex);
    arg1.writeInt(this.killPlayer);
    arg1.writeInt(this.assist);
    arg1.writeInt(this.continuityKill);
    arg1.writeInt(this.honour);
    arg1.writeInt(this.continuityHonour);
    return;
  }

  public __read(arg1: SerializeStream): void {
    this.entityId = new SEntityId();
    this.entityId.__read(arg1);
    this.name = arg1.readString();
    this.camp = arg1.readByte();
    this.sex = arg1.readByte();
    this.killPlayer = arg1.readInt();
    this.assist = arg1.readInt();
    this.continuityKill = arg1.readInt();
    this.honour = arg1.readInt();
    this.continuityHonour = arg1.readInt();
    return;
  }

  public /* var */ entityId!: SEntityId;

  public /* var */ name!: string;

  public /* var */ camp!: int;

  public /* var */ sex!: int;

  public /* var */ killPlayer!: int;

  public /* var */ assist!: int;

  public /* var */ continuityKill!: int;

  public /* var */ honour!: int;

  public /* var */ continuityHonour!: int;
}
